package com.mashibing.dp.proxy.spring.v2;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * 2、注解方式实现
 * 项目要有规范：切面不能和逻辑放一个包里、也不能分布在不同的包
 * spring aop test
 */
public class Main {
    public static void main(String[] args) {
        ApplicationContext context = new ClassPathXmlApplicationContext("app_auto.xml");
        Tank t = (Tank)context.getBean("tank");
        t.move();
    }
}
